package com.service.seinterface;

import com.domain.OrderMall;
import com.domain.OrderGood;
import com.domain.result.ResultData;

import java.util.List;

public interface OrderService {

    ResultData addOrder(OrderMall orderMall, List<OrderGood> orderGoods);

    ResultData getOrderByUserId(Integer userid);

    ResultData deleteOrderById(Integer orderid);

    ResultData updateOrderState(Integer orderid, Integer state,Integer ordertype);


    ResultData getOrderByOrderType(Integer ordertype);

    ResultData getOrderByUserIdAndOrderType(Integer userid, Integer ordetype,Integer pageNo,Integer pageCount);

    ResultData getOrderByUserIdAndOrderType(Integer userid, Integer ordetype);

    ResultData getOrderByOrderType(Integer ordertype, Integer orderstate);
}
